<?php

class Exam_AdminExamController extends Core_Controller_Action_Admin {
	public function indexAction() {

        $this->view->navigation = $navigation = Engine_Api::_ ()->getApi ( 'menus', 'core' )->getNavigation ( 'exam_admin_main', array (), 'exam_admin_main_exam' );

        // Prepare data
    	$table = Engine_Api::_()->getDbTable('exams','exam');
    	
    	$select = $table->select();
            	
        $paginator = $this->view->paginator = Zend_Paginator::factory($select);
        $paginator->setCurrentPageNumber($this->_getParam('page',1));
        $paginator->setItemCountPerPage(10);
	}
}
